package com.kaoshi.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDate;

import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-10-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jm_person")
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelIgnore
    private Integer id;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名")
    private String name;

    /**
     * 头像
     */
    @ExcelIgnore
    private String img;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证")
    private String sfz;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String sjh;

    /**
     * 现居地
     */
    @ExcelProperty(value = "现居地")
    private String xjd;

    /**
     * 登陆密码
     */
    @ExcelProperty(value = "登陆密码")
    private String dlmm;

    /**
     * 行政区划
     */
    @ExcelProperty(value = "行政区划")
    private String xzqh;

    /**
     * 居民标签
     */
    @ExcelProperty(value = "居民标签")
    private String bq;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别")
    private Integer sex;

    /**
     * 出生日期
     */
    @ExcelIgnore
    private LocalDate ctime;

    /**
     * 籍贯
     */
    @ExcelProperty(value = "籍贯")
    private String jg;

    /**
     * 民族
     */
    @ExcelProperty(value = "民族")
    private String mz;

    /**
     * 文化程度
     */
    @ExcelProperty(value = "文化程度")
    private String whcd;

    /**
     * 婚姻状况
     */
    @ExcelProperty(value = "婚姻状况")
    private String hy;

    /**
     * 职业
     */
    @ExcelProperty(value = "职业")
    private String zy;

    /**
     * 工作单位
     */
    @ExcelProperty(value = "工作单位")
    private String gzdw;

    /**
     * 紧急联系人
     */
    @ExcelProperty(value = "紧急联系人")
    private String lxr;

    /**
     * 联系人电话
     */
    @ExcelProperty(value = "联系人电话")
    private String lxdh;

    /**
     * 户籍类型
     */
    @ExcelProperty(value = "户籍类型")
    private String hjlx;

    /**
     * 费用类型
     */
    @ExcelProperty(value = "费用类型")
    private String fy;

    /**
     * 定点医疗单位
     */
    @ExcelProperty(value = "定点医疗单位")
    private String yldw;

    /**
     * 来源
     */
    @ExcelProperty(value = "来源")
    private String ly;
    //统计
    @TableField(exist = false)
    private Integer num;


    /**
     * 关系
     */
    @TableField(exist = false)
    @ExcelIgnore
    private String gx;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer pid;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer gid;

    /**
     * 逻辑删除
     */
    @ExcelIgnore
    private Integer lj;

    //    居民状态
    @ExcelIgnore
    private Integer jmstatus;

    //    签约状态
    @ExcelIgnore
    private Integer qystatus;


    //    签约机构
    @ExcelIgnore
    private Integer qyjg;


    //    医生团队\
    @ExcelIgnore
    private Integer ystd;


    //    服务包
    @ExcelIgnore
    private Integer fwb;

    //    年龄
    @ExcelIgnore
    private Integer age;


    //    户籍地址
    @ExcelIgnore
    private String hjdz;

    @TableField(exist = false)
    @ExcelIgnore
    private Integer jid;
    @TableField(exist = false)
    @ExcelIgnore
    private Integer sg;
    @TableField(exist = false)
    @ExcelIgnore
    private Integer zl;
    @TableField(exist = false)
    @ExcelIgnore
    private String xx;
    @TableField(exist = false)
    @ExcelIgnore
    private String  yx;
    @TableField(exist = false)
    @ExcelIgnore
    private String gms;
    @TableField(exist = false)
    @ExcelIgnore
    private String jwd;
    @TableField(exist = false)
    @ExcelIgnore
    private String jzs;
    @TableField(exist = false)
    @ExcelIgnore
    private String jzbs;

    @TableField(exist = false)
    @ExcelProperty("图片")
    public byte[] imgBytes;

}
